from celery import shared_task
import time
# 记录日志：
import logging

from utils.sendmsg import send_message

logger = logging.getLogger("django")

@shared_task(name="send_sms")
def send_sms(phone,code):
    res=send_message(phone,code)
    return res